//----------------------------------------------------------------------------
/** @file Platform.cpp */
//----------------------------------------------------------------------------

#include "stdafx.h"


#include "Platform.h"

#include "GtpEngine.h"
#ifdef _POSIX_SOURCE
#include <unistd.h>
#endif
#if WIN32
#include <windows.h>
#endif

//----------------------------------------------------------------------------

namespace amigogtp {

using namespace std;

//----------------------------------------------------------------------------

void Platform::Sleep(unsigned long milliseconds)
{
#if WIN32
    ::Sleep(milliseconds);
#else
    usleep(1000 * milliseconds);
#endif
}

//----------------------------------------------------------------------------

} // namespace amigogtp
